package com.supermarket.demo1.controller;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class IndexController {

    @RequestMapping("/index")
    public String toLogin(){
        System.out.println("显示登录首页");
        return "login";//视图解析 指向/WEB-INF/index.jsp
    }
}
